#ifndef __MYSTDIO_H__
#define __MYSTDIO_H__
#include<string.h>

#define SIZE 1024

#define FLUSH_NOW 1
#define FLUSH_LINE 2
#define FLUSH_ALL 4


typedef struct IO_FILE{
  int fileno;//文件描述符
  int flag;//用什模方式打开

  char outbuffer[SIZE];
  int out_pos;
}_FILE;



_FILE *_fopen(const char*filename,const char *flag);//打开filename文件，用flag方式

int _fwrite(_FILE *fp,const char*s,int len);

void _fclose(_FILE *fp);

#endif
